package main

import (
	"sync"
)

// 常见单行注释和多行注释（java）
const (
	NOTES_1 = "//"
	NOTES_2 = "/*"
	NOTES_3 = "*/"
)

type tranFile struct {
	filePath string
	newPath  string
}

var ch = make(chan tranFile, 50)

var Wg sync.WaitGroup

// 标记位，是否在多行注释的开始和结束中间
var NOTES = false

// 翻译api TODO 删除了公开的翻译api地址
var TRANSLATION_API = "http://82.157.145.219:9999/user/"

func main() {
	start("D:\\spring-framework-main")
}

func start(rootPath string) {
	Wg.Add(10)
	for i := 0; i < 10; i++ {
		go translate2(ch)
	}

	RecursionFile(rootPath, rootPath+"_zh", ch)
	close(ch)
	Wg.Wait()
}
